package org.douxiaoban.client.api;

import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gdata.data.douban.CollectionEntry;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: huangzhongkun
 * Date: 11-5-23
 * Time: 下午10:45
 */
public class CollectionRecord implements Serializable{
    public String id;
    public String subjectType;
    public String title;
    public String author_name;
    public String author_uri;
    public String status;
    public String icon_url;
    public Bitmap icon_bitmap;
    public Boolean icon_downloading = false;
    public Boolean icon_download_status = false;

    public ArrayList<String> tags = new ArrayList<String>();
    public ArrayList<String> attribute_name = new ArrayList<String>();
    public ArrayList<String> attribute_content = new ArrayList<String>();

    public CollectionEntry collectionEntry;

    public String summary;
    public int rating;

    public String update_date;
    public  int total_result;

//    @Override
//    public int describeContents() {
//        return 0;
//    }
//
//    @Override
//    public void writeToParcel(Parcel parcel, int i) {
//       parcel.writeString(id);;
//       parcel.writeString(subjectType);
//       parcel.writeString(title);
//       parcel.writeString(author_name);
//       parcel.writeString(author_uri);
//       parcel.writeString(status);
//       parcel.writeString(summary);
//       parcel.writeInt(rating);
//       parcel.writeString(update_date);
//
//       parcel.writeList(tags);
//
//
//     }
//
//    public static final Creator<CollectionRecord> CREATOR = new Creator<CollectionRecord>(){
//        @Override
//        public CollectionRecord createFromParcel(Parcel parcel) {
//            CollectionRecord cr = new CollectionRecord();
//            cr.author_name = parcel.readString();
//            cr.author_uri = parcel.readString();
//            cr.id = parcel.readString();
//            cr.title = parcel.readString();
//            cr.status = parcel.readString();
//            cr.summary = parcel.readString();
//            cr.rating = parcel.readInt();
//            cr.update_date = parcel.readString();
//
//            //cr.tags = parcel.readList(cr.tags,null);
//            return cr;
//        }
//
//        @Override
//        public CollectionRecord[] newArray(int i) {
//            return new CollectionRecord[i];  //To change body of implemented methods use File | Settings | File Templates.
//        }
//    };
}
